import Vue from 'vue'
import VueStorage from 'vue-ls'
import App from './App.vue'
import {initRouter} from './router'
import './theme/index.less'
import './theme/global.less'
import Antd from 'ant-design-vue'
import Viser from 'viser-vue'
import '@/mock'
import store from './store'
import 'animate.css/source/animate.css'
import Plugins from '@/plugins'
import {initI18n} from '@/utils/i18n'
import {bootstrap} from '@/bootstrap'
import { VueAxios } from './utils/request'
import {storageOptions} from '@/config/default/setting.config'
import http from '@/services/http'
import "moment/locale/zh-cn"
import Highlight from '@/plugins/highlight.js'
import * as ReAudit from '@/config/default/reaudit.config.js'
Vue.use(ReAudit)
Vue.use(Highlight)
Vue.prototype.$http = http
Vue.use(Antd)
Vue.config.productionTip = false
Vue.use(Viser)
Vue.use(Plugins)
Vue.use(VueAxios)
Vue.use(VueStorage, storageOptions)
const router = initRouter()
const i18n = initI18n('CN')
bootstrap({router, store, i18n})
new Vue({
  router,
  store,
  i18n,
  render: h => h(App),
}).$mount('#app')
